home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _ED94CCEBA2AB45F5A36A67C32DD80EB7 < prev    next >
Encoding:
Text File  |  2000-03-27  |  2.5 KB  |  83 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3. #include "tsr1.ds"
  4.  
  5. // this script controls the end raid right before the player jumps on the train
  6.  
  7. local entity rswat1 // the first swat guy
  8. local entity rswat2 // the second swatguy
  9. local entity rhawk // the hawk model used here
  10. local entity rbadguy1 // first bad skinhead
  11. local entity rbadguy2 // the second bad skinhead
  12. local entity leader // the skinhead leader who will take off on the train
  13. local entity rcam1 // the camera for the one cinematic shot
  14. local entity rcam1n // the cameras null
  15. local entity leadertrain // the train that leader takes off on
  16. local entity sabrefade1 // the first fade
  17. local entity sabrefade2 // the second fadeback
  18. local entity traintriggerb // the trigger on top of the train that needs to become active once this script is over
  19. local entity raidb //
  20. local int hawkhealth
  21.  
  22. local int sig1
  23.  
  24. rswat1 = find entity with targetname "rswat1"
  25. rswat2 = find entity with targetname "rswat2"
  26. rhawk = find entity with targetname "rhawk"
  27. rbadguy1 = find entity with targetname "rbadguy1"
  28. rbadguy2 = find entity with targetname "rbadguy2"
  29. leader = find entity with targetname "leader"
  30. rcam1 = find entity with targetname "rcam1"
  31. rcam1n = find entity with targetname "rcam1n"
  32. leadertrain = find entity with targetname "leadertrain"
  33. sabrefade1 = find entity with targetname "sabrefade1"
  34. sabrefade2 = find entity with targetname "sabrefade2"
  35. traintriggerb = find entity with targetname "traintriggerb"
  36. raidb = find entity with targetname "raidb"
  37.  
  38.  
  39. rcam1.movetype = MOVETYPE_NOCLIP
  40. rcam1n.movetype = MOVETYPE_NOCLIP
  41.  
  42. wait .1 seconds // magic delay
  43.  
  44.  
  45. animate entity rbadguy1 performing action CCH_XONKNEES_N_N_N holding for 999.0
  46. animate entity rbadguy2 performing action STD_XAFRAIDSHAKE_N_N_N holding for 999.0  // him laying there on the ground PRN_A_N_A_2
  47.  
  48. animate entity rhawk performing action STD_XYELLWAVE_BK_A_N holding for 2.6 //new line
  49. use entity leader //new line
  50.  
  51.  
  52.  
  53. wait .3 seconds //new line
  54.  
  55.  
  56.  
  57.     animate entity rhawk showing emotion EMOTION_TALK holding for 1.3
  58.     play sound "cin/tsr1/c7d1.adp" for entity rhawk at volume 0.9 on channel CHAN_AUTO  // Hawk talking to John
  59.     print TSR1_C7D1
  60.     //wait 1 seconds 
  61.  
  62. wait .5 seconds
  63.  
  64.  
  65.  
  66. wait .4 seconds
  67.  
  68.  
  69.     play sound "cin/tsr1/c7d2.adp" for entity rhawk at volume 0.9 on channel CHAN_AUTO  // Hawk talking to John
  70.     print TSR1_C7D2
  71.  
  72. wait .5 seconds
  73.  
  74. hawkhealth = rhawk.health
  75.  
  76. if hawkhealth > 0
  77.  
  78.     use entity raidb // triggers the second half of the script
  79.  
  80. endif
  81.  
  82.     exit
  83.